<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="Rover.RoverDeal"%>
<%@ page import="java.sql.*"%>
<%@ page import="java.util.*"%>
<script  language="javascript">

<!-- Begin validation script  
function checkForm(){
	    if(document.form1.RovName.value==""){
		alert("请输入流动站名称！");
		return false;
		}
	    if(document.form1.AdmKey.value==""){
		alert("请输入管理员密码！");
		return false;
		}
		if(document.form1.ComMax.value=="")
		{
			alert("输入商品上限！");
		    return false;
		}
	
	return true;
	}
-->
</script>

<html>
<head>
<title>添加流动站</title>
</head>

<body>
<FORM NAME="form1" METHOD="POST" ACTION="SaveRover.jsp" onSubmit="return checkForm()">
 <table width="90%" border="0" cellspacing="1" cellpaddg="0" align="center">
  <tr align=center>
    <td  nowrap align="left" >添加流动站
   	</td>
  </tr>
 </table>	  
  <table  width="90%" border="0" cellspacing="2" cellpadding="0" bgcolor="#FFFBEC" align="center">
    <tr> 
      <td width="20%" align="right">流动站名称：</td>
      <td width="80%" > 
        <input type="text" name="RovName" size="30">
        </td>
    </tr>
    <tr>
      <td width="20%" align="right">商品上限：</td>
      <td width="80%" > 
      <input type="text" name="ComMax" size="30">
       *</td>
    </tr>
   <tr> 
      <td width="20%" align="right">管理员：</td>
      <td>
          <SELECT id=typeId style="WIDTH: 110px" name="AdmID"> 
          <% 
          RoverDeal a=new RoverDeal();
          ResultSet rs=a.CalAllAdmin();
          if(rs.next())
          {
          	 out.print( " <option   value= '"+rs.getString(1).trim()+"' selected> "+rs.getString(1).trim()+" </option> "); 
          }
           try{ 
				while(rs.next()){ 
				out.print( " <option   value= '"+rs.getString(1).trim()+"'> "+rs.getString(1).trim()+" </option> "); 
			} 
			} 
			catch(Exception   e){e.printStackTrace();} 
          %>
          </SELECT> 
      *</td>
    </tr>
  </table>
<table width="366" border="0" cellspacing="2" cellpadding="0" align="left">
    <tr align="left"> 
      <td colspan="2" height="12" align="right"> 
        <input type="submit" value="提交">
      </td>
      <td colspan="2" height="12" align="center"> 
        <input type="reset" value="重置">
      </td>
    </tr>
  </table>
</FORM>
</body>
</html>